package com.yl.chainStore.services.warehouse

import com.baomidou.mybatisplus.extension.plugins.pagination.Page
import com.yl.chainStore.entity.warehouse.*
import com.yl.chainStore.pojo.vo.warehouse.WarehouseCheckOrderSelectVo
import com.yl.chainStore.pojo.vo.warehouse.WarehouseDispatchOrderSelectVo
import com.yl.chainStore.pojo.vo.warehouse.WarehouseInOrderSelectVo
import com.yl.chainStore.pojo.vo.warehouse.WarehouseOutOrderSelectVo
import com.yl.common.control.ResponseBody

/**
 * 盘点单
 */
interface IWarehouseCheckOrderService {


    fun addDetail(detail:WarehouseCheckOrderDetail):ResponseBody

    /**
     * 详情
     */
    fun getCheckOrder(id: Long): WarehouseCheckOrder?

    /**
     * 盘点单详情
     */
    fun getOrderDetails(orderId:Long):List<WarehouseCheckOrderDetail>


    /**
     * 确认盘点信息
     */
    fun completeCheckOrder(id: Long): ResponseBody

    /**
     * 确认盘点信息 审核通过
     */
    fun completeCheckOrder(checkOrder: WarehouseCheckOrder): ResponseBody

    /**
     * 取消盘点信息
     */
    fun cancelCheckOrder(id: Long): ResponseBody

    /**
     * 审核不通过
     */
    fun noPassCheckOrder(id: Long): ResponseBody

    /**
     * 删除盘点订单
     */
    fun deleteCheckOrder(orderId:Long):ResponseBody


}